package homework;

/**
 * Test
 *
 * @author byc
 * @date 2021-09-12
 */
public class Test {

    public static void main(String[] args) {

        int[] arr = {1,2,3,1,1,5,6,7,8,8,9,4};

        for (int x = 0; x < arr.length; x++) {
            int sumber1 = 0;
            for (int j = 0; j < arr.length; j++) {
                //数组中的数循环比较
                if (x == arr[j]) {
                    sumber1++;
                }
            }
            System.out.println(x + "重复的个数为" + sumber1);
        }

    }
}
